package se.sll.service.catalogue.common.rest.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 *
 * @author Jiri Uosukainen
 */
@SuppressWarnings("PMD.UnusedPrivateField")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@EqualsAndHashCode(exclude = {"productReferences"})
@JsonIgnoreProperties
public class Unit implements Serializable {
    private String unitId;
    private String regionalUnitId;
    private String relativeDistinguishedName;
    private Date creationTime;
    private Date updateTime;
    private List<ProductReference> productReferences;   
}